import type { UserItem } from '@/types/dept'
import type { myData, myScheduling } from '@/types/myScheduling'
import type { User } from '@/types/userDetails'
import { http } from '@/utils/http'


/**
 * 获取个人信息
 * @param  请求体参数
 */
export const getUserDelailsList = (id: string) => {
    return http<User>({
      method: 'GET',
      url: `/system/user/getUserByIdQ/${id}`,
    })
  }
  /**
   * 根据deptId查询到部门信息
   * 
   */
  export const getDeptByDeptId = (id:string) =>{
    return http<UserItem>({
      method: 'POST',
      url: `/systemManager/dept/getDeptByDeptId/${id}`,
    })
  }

    /**
   * 根据userID查询排班信息
   * 
   */
    export const getMyScheduling = (data?:myData) =>{
      return http<myScheduling>({
        method: 'POST',
        url: '/seeADoctor/scheduling/queryMyScheduling',
        data
      })
    }

  